<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="common_header(title,links)">
    <title th:replace="${title}">The awesome application</title>
    <th:block th:replace="${links}" />
</head>


<body>
    <h1>i18n</h1>
    <h1 th:text="#{name}"></h1>
    <a  th:href="@{/msg(lang='zh_CN')}">中文</a>
    <a  th:href="@{/msg(lang='en_US')}">English</a>
<div id="common">公共模板</div>


</body>
</html>